package com.zxy.health.mapper;


import com.zxy.health.dao.StudentDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Repository
@Mapper
public interface StudentMapper {

    List<StudentDao> getStudentList();

    StudentDao getStudent(@Param("username") String username,@Param("password") String password);

    List<StudentDao> getStudentBySchoolId(@Param("schoolid") String schoolid);

    List<StudentDao> getStudentByClassname(@Param("classname") String classname);

    boolean insertStudent(StudentDao studentDao);

    boolean updateStudent(StudentDao studentDao);

    boolean updateStudentHealthcode(@Param("schoolid")String schoolid,@Param("healthcode") int healthcode);

    boolean deleteStudentById(@RequestParam("id") String id);

}
